package com.ht.service.impl;

import com.ht.bean.HolidayStudent;
import com.ht.bean.Student;
import com.ht.dao.StuhdayCountDao;
import com.ht.service.StuhdayCountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class StuhdayCountServiceImpl implements StuhdayCountService {

    @Resource
    private StuhdayCountDao stuhdayCountDao;

    @Override
    public List<Map> countStuHlday(String stuName,Integer startIndex, Integer pageSize) {
        return stuhdayCountDao.countStuHlday(stuName,startIndex,pageSize);
    }


    @Override
    public int limitStuHlday(String stuName) {
        return stuhdayCountDao.limitStuHlday(stuName);
    }

    @Override
    public List<Student> countMapName() {
        return stuhdayCountDao.countMapName();
    }

    @Override
    public List<HolidayStudent> countMapNum() {
        return stuhdayCountDao.countMapNum();
    }

}
